<?php
$title = 'title'.$rear;
$alias = 'alias'.$rear;
$intro = 'introtext'.$rear;
$full = 'fulltext'.$rear;
?>
<div class="row-top-news">
    <div xmlns:v="http://rdf.data-vocabulary.org/#" class="breadcrumb">
	   <span typeof="v:Breadcrumb">
	     <a property="v:title" rel="v:url" title="Trang chủ" href="<?php echo base_url(); ?>">
	      Trang chủ
	    </a> ›
	   </span>
	   <span typeof="v:Breadcrumb">
	      <?php echo $categories[0]->$title; ?>	   
       </span>
	</div>
</div>
<?php if(!empty($mNews)) {
?>
<!-- Module main body -->
<div class="module-body">
    <div class="content-module">
        <ul class="clearfix service-en" >
            <?php if(!empty($mNews)) {
                $i = 1;
                foreach ($mNews as $mNews)
                {
                    ?>
                    <li class="clearfix <?php echo 'items-'.$i.' post-'.$mNews->id; ?> items-archice">
                        <a href="<?php the_permalink($mNews->id); ?>" title="<?php echo $mNews->$title; ?>">
                            <img src="<?php echo image($mNews->image,'square'); ?>" alt="<?php echo $mNews->$title; ?>" class="service-img"/>
                        </a>
                        <div class="service-body">
                            <a class="title-service archive-post-title" href="<?php the_permalink($mNews->id); ?>" title="<?php echo $mNews->$title; ?>">
                                <?php echo $mNews->$title; ?>
                            <span class="date-post"><?php echo $mNews->created; ?></span>
                            </a>
                            <p>
                                <?php echo character_limiter($mNews->$intro,450); ?>
                            </p>
                        </div>
                    </li>
                    <?php
                    $i++;
                }
             }?>
        </ul>
    </div>
    <div class="phantrang">
         <?php echo $this->pagination->create_links(); ?>
    </div>
</div>
<?php } else { echo '<h2>Danh Mục chưa có bài viết!</h2>'; } ?>
<!-- End module main body -->